added SSCLI 1.0
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2010 / CSAzureBingMaps / WebRole1 / Web.config
blob9848c7f982b6850f3d0ea480ff349b3ea8d7ba29
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 For more information on how to configure your ASP.NET application, please visit
4 http://go.microsoft.com/fwlink/?LinkId=169433
5 -->
6 <configuration>
7 <configSections>
8 <section name="microsoft.identityModel" type="Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
9 <section name="dataCacheClient" type="Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" />
10 </configSections>
12 <startup useLegacyV2RuntimeActivationPolicy="true">
13 <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
14 </startup>
16 <system.diagnostics>
17 <trace>
18 <listeners>
19 <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
20 <filter type="" />
21 </add>
22 </listeners>
23 </trace>
24 </system.diagnostics>
26 <connectionStrings>
27 <!-- Configure to your SQL Azure server. -->
28 <add name="TravelModelContainer" connectionString="metadata=res://*/TravelModel.csdl|res://*/TravelModel.ssdl|res://*/TravelModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=[Your SQL Azure server].database.windows.net;Initial Catalog=AzureBingMaps;Persist Security Info=True;User ID=[Your User ID];Password=[Your password];MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
29 </connectionStrings>
31 <appSettings>
32 <!-- Copy Application ID from http://manage.dev.live.com below for your app -->
33 <add key="wl_wrap_client_id" value="[Your Client ID]" />
34 <!-- Copy Application Secret from http://manage.dev.live.com below for your app -->
35 <add key="wl_wrap_client_secret" value="Your Client Secret" />
36 <!-- Callback Url for your app, Please register this for your app in http://manage.dev.live.com -->
37 <!-- 127.0.0.1:81 is not supported. For Compute Emulator, you need to configure your local hosts file. -->
38 <add key="wl_wrap_client_callback" value="http://[Your Azure Service Name].cloudapp.net[Your port number]/OAuthWrapCallback.ashx" />
39 <!-- Channel Url for your app. This is required for older browsers. -->
40 <add key="wl_wrap_channel_url" value="http://[Your Azure Service Name].cloudapp.net[Your port number]/channel.htm" />
41 <!-- Required by OAuthWrapCallback.ashx -->
42 <add key="wl_wrap_sessionId_provider_type" value="AzureBingMaps.WebRole.AuthIntegration" />
43 </appSettings>
45 <!-- Config sections for distributed cache. -->
46 <dataCacheClient deployment="Simple">
47 <hosts>
48 <!-- Change to your AppFabric namespace. -->
49 <host name="[Your AppFabric namespace].cache.appfabriclabs.com" cachePort="22233" />
50 </hosts>
52 <securityProperties mode="Message">
53 <!-- Copy the key from AppFabric portal -->
54 <messageSecurity authorizationInfo="[Your Auth Info]">
55 </messageSecurity>
56 </securityProperties>
57 </dataCacheClient>
59 <system.web>
60 <httpRuntime requestValidationMode="2.0" />
61 <compilation debug="true" targetFramework="4.0" />
62 <authentication mode="None" />
63 <membership>
64 <providers>
65 <clear />
66 <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
67 </providers>
68 </membership>
69 <profile>
70 <providers>
71 <clear />
72 <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
73 </providers>
74 </profile>
75 <roleManager enabled="false">
76 <providers>
77 <clear />
78 <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
79 <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
80 </providers>
81 </roleManager>
83 <httpHandlers>
84 <add verb="GET" path="OAuthWrapCallback.ashx" type="Microsoft.Live.OAuthWrapHandler, Microsoft.Live.AuthHandler" />
85 </httpHandlers>
87 <httpModules>
88 <add name="WSFederationAuthenticationModule" type="Microsoft.IdentityModel.Web.WSFederationAuthenticationModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
89 <add name="SessionAuthenticationModule" type="Microsoft.IdentityModel.Web.SessionAuthenticationModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
90 <add name="ClaimsAuthorizationModule" type="Microsoft.IdentityModel.Web.ClaimsAuthorizationModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
91 </httpModules>
93 <!-- Config to store session in AppFabric cache. -->
94 <sessionState mode="Custom" customProvider="AppFabricCacheSessionStoreProvider">
95 <providers>
96 <add name="AppFabricCacheSessionStoreProvider" type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache" cacheName="default" useBlobMode="false" />
97 </providers>
98 </sessionState>
100 <customErrors mode="Off" />
101 <!-- Use the value generated when creating your own project. -->
102 <machineKey decryption="AES" decryptionKey="[Your decryption key]" validation="SHA1" validationKey="[Your validation key]" />
103 </system.web>
105 <system.webServer>
106 <validation validateIntegratedModeConfiguration="false" />
107 <handlers>
108 <add name="OAuthWrapHandler" verb="GET" path="OAuthWrapCallback.ashx" type="Microsoft.Live.OAuthWrapHandler, Microsoft.Live.AuthHandler" />
109 </handlers>
110 <modules runAllManagedModulesForAllRequests="true">
111 <add name="WSFederationAuthenticationModule" type="Microsoft.IdentityModel.Web.WSFederationAuthenticationModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler" />
112 <add name="SessionAuthenticationModule" type="Microsoft.IdentityModel.Web.SessionAuthenticationModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler" />
113 <add name="ClaimsAuthorizationModule" type="Microsoft.IdentityModel.Web.ClaimsAuthorizationModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler" />
114 </modules>
115 </system.webServer>
117 <system.serviceModel>
118 <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
119 </system.serviceModel>
121 <!-- Config WIF. -->
122 <microsoft.identityModel>
123 <service>
124 <serviceCertificate>
125 <!-- Change to your certificate thumbprint. -->
126 <certificateReference x509FindType="FindByThumbprint" findValue="[Your thumbprint]" />
127 </serviceCertificate>
129 <audienceUris>
130 <!-- Change to your Azure domain or 127.0.0.1:81. -->
131 <add value="http://[Your domain]/" />
132 </audienceUris>
133 <federatedAuthentication>
134 <!-- Change to your AppFabric namespace. -->
135 <wsFederation passiveRedirectEnabled="true" issuer="https://[Your AppFabric namespace].accesscontrol.appfabriclabs.com/v2/wsfederation" realm="http://azurebingmaps.cloudapp.net/" requireHttps="false" />
136 <cookieHandler requireSsl="false" />
137 </federatedAuthentication>
138 <applicationService>
139 <claimTypeRequired>
140 <!-- We only need the user's email. -->
141 <claimType type="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" optional="true" />
142 </claimTypeRequired>
143 </applicationService>
144 <issuerNameRegistry type="Microsoft.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
145 <trustedIssuers>
146 <!-- Change to the value generated when adding STS reference. -->
147 <add thumbprint="[Generated thumbprint]" name="https://[Your AppFabric namespace].accesscontrol.appfabriclabs.com/" />
148 </trustedIssuers>
149 </issuerNameRegistry>
150 <certificateValidation certificateValidationMode="None" />
151 </service>
152 </microsoft.identityModel>
153 </configuration>